include ../../makefiles/cross_compile.mk
CURDIR = $(shell pwd)
CGO_CFLAGS		+= 	-I${CURDIR}/../include
SOURCES = $(wildcard *.go) $(wildcard */*.go)
TARGET = alist
SRCS = main.go

ifeq ($(OS),ubuntu)
	LIBDIR = libs/linux
else ifneq (,$(filter $(OS), m8x6 m8x7))
	LIBDIR = libs/m8x4
	CGO_LDFLAGS 	+=	-L${CURDIR}/../../${LIBDIR}
else ifneq (,$(filter $(OS), m8x4 m8x8 m8x9 m8x10 m8x11 m8x5 m8x13 m8x14))
	LIBDIR = libs/m8x10
	CGO_LDFLAGS 	+=	-L${CURDIR}/../../${LIBDIR}
endif
